﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemoGame
{
    class HOFItem : IComparable
    {
        private String player;

        public String Player
        {
            get { return player; }
            set { player = value; }
        }
        private String time;

        public String Time
        {
            get { return time; }
            set { time = value; }
        }

        public int CompareTo(object obj)
        {
            if (obj is HOFItem)
            {
                HOFItem a = (HOFItem)obj;
                return time.CompareTo(a.time);
            }
            else
            {
                throw new ArgumentException("Object is not a HOFItem.");
            }
        }

        public HOFItem(String player, String time)
        {
            this.player = player;
            this.time = time;
        }
    }
}
